package com.billbaijie.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.billbaijie.dao.AutUserDao;
import com.billbaijie.model.AutUserInfo;
import com.billbaijie.service.AutUserService;

@Service
public class AutUserServiceImpl implements AutUserService {

	@Autowired
	AutUserDao autUserDao;
	
	@Override
	public List<AutUserInfo> getAll(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return autUserDao.findAll(map);
	}

	@Override
	public int addAutUser(AutUserInfo autUserInfo) {
		// TODO Auto-generated method stub
		return autUserDao.addAutUsers(autUserInfo);
	}

	@Override
	public int updateAutUser(AutUserInfo autUserInfo) {
		// TODO Auto-generated method stub
		return autUserDao.updateAutUsers(autUserInfo);
	}

	@Override
	public int deleteAutUser(AutUserInfo autUserInfo) {
		// TODO Auto-generated method stub
		return autUserDao.deleteAutUsers(autUserInfo.getUserId());
	}

	@Override
	public int countAutUser() {
		// TODO Auto-generated method stub
		return autUserDao.countAutUsers();
	}
}
